{% extends 'demo/base.html' %}
{% load static %}
{% block title %}
    账号注册
{% endblock %}
{% block link %}
    <link rel="stylesheet" href="{% static 'css/user/register.css' %}">
{% endblock %}
{% block header %}
    <div class="left">
        <a href="{% url 'index' %}">首页</a>
    </div>
    {% load common_extras %}
    <div class="right">
        {{ user.name|default:'登录'|mycapfirst }}~*~{% current_time '%Y-%m-%d %H:%M:%S' %}
    </div>
{% endblock %}
{% block main %}
    <div class="bg">
        <div class="slogan">
            <h2>欢迎注册</h2>
            <h2>ye</h2>
            <h2>专业IT技术平台</h2>
        </div>
        <div class="form-box">
            <div class="main">
                <h2>注册</h2>
                <form method="post">
                    {% csrf_token %}
                    <ul>
                        <li>
                            <label for="username">用户名</label>
                            <input type="text" id="username" name="username" placeholder="请输入用户名">
                        </li>
                        <li>
                            <label for="password">密&emsp;码</label>
                            <input type="password" id="password" name="password" placeholder="请输入密码">
                        </li>
                        <li>
                            {{ message }}
                        </li>
                        <li>
                            <input type="submit" value="立即注册" class="submit-btn">
                        </li>
                    </ul>
                </form>
                <div class="bottom-box">
                    <a href="{% url 'login' %}">注册成功，立即登录</a>
                </div>
            </div>
        </div>
    </div>
{% endblock %}